package com.liliudong.template.biz.mapper.sys;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liliudong.template.common.entity.sys.SysRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * SysRoleMapper
 *
 * @author ldli5
 * @classname SysRoleMapper
 * @date 2024/6/18-16:30
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {
	/**
	 * 按用户id选择忽略数据权限
	 *
	 * @return {@link List }<{@link SysRole }>
	 */
	@InterceptorIgnore(dataPermission = "true")
	List<SysRole> selectListByUserIdIgnoreDataPermission(Long userId);
}
